
import React,{Component} from 'react'
import {FacilityCost} from 'action/facilityOption.js'

export default class PutAccuracy extends Component{
	
	init(){
		let App=echarts.init(document.querySelector("#FacilityCost"));
		App.setOption(FacilityCost());
	}
	
	componentDidMount(){
		
		let w=(window.getComputedStyle(
				document.querySelector('.FacilityCost'))).width.replace('px','');
			
		document.querySelector('#FacilityCost').width=w;
		
		this.init();
	}
	
	render(){
		return(
			<div className="progress">
				<article className="FacilityCost progress">
					<div className="regiona2">
	 					<h2>Broadcast delivery</h2>
	 				</div>
					<canvas id="FacilityCost" width="500" height="450px">	
					</canvas>
				</article>
			</div>
		)
	}
}
